package com.yc.cloudvideo.sp_file.controller;


import com.yc.cloudvideo.entity.File;
import com.yc.cloudvideo.sp_file.mapper.FileMapper;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LYYT
 * @since 2022-08-06
 */
@RestController
@RequestMapping("/cloudvideo/file")
public class FileController {
    @Resource
    private FileMapper fileMapper;

    @PostMapping("getFile")
    File getFiles(@RequestParam String fid){
        return fileMapper.selectById(fid);
    }
}

